package com.gang.mars.basic.map;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author gang.chen
 * @description
 * @Date 2021/7/29 8:09
 */
public class Banana01 {

    String name;

    Map<Object,Banana01> map = new LinkedHashMap<>();

    public Banana01(){

    }
    public Banana01(String name){
        this.name = name;
    }

    Banana01 getBanana01(){
        Banana01 gangC = map.computeIfAbsent(new Banana01("gang.chen"), key -> new Banana01("GangC"));
        return gangC;
    }
}
